package services

import (
	"genealogy/dao"
	"genealogy/models"
)

func GetAllRelationship(Relationship map[string]interface{}) (error, []models.Relationship, int64) {
	err, RelationshipData, total := dao.GetAllRelationship(Relationship)
	return err, RelationshipData, total
}
func DelRelationship(id string) error {
	err := dao.DelRelationship(id)
	return err
}

func UpdateRelationship(Relationship models.Relationship) error {
	err := dao.UpdateRelationship(Relationship)
	return err
}

func AddRelationship(Relationship models.Relationship) error {
	err := dao.AddRelationship(Relationship)
	return err
}
